package indi.h.dictionary.element.exception;

public class StoragerCheckException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String V = "value";
	public static final String K = "key";
	private String p;
	private String t;
	private String c;

	public StoragerCheckException() {

	}

	public StoragerCheckException(String msg) {
		super(msg);
	}

	public StoragerCheckException(String c, String p, String t) {
		this.c = c;
		this.p = p;
		this.t = t;
	}

	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		if (super.getMessage() == null || super.getMessage().isEmpty())
			return c + " method storage param " + p + " must instanceof " + t+" !";
		else
			return super.getMessage();
	}
}
